import { createStore } from "vuex";
import login from "./login/login";
import createPersistedState from "vuex-persistedstate";
import { RooTState } from "./types";

const store = createStore({
  state: (): RooTState => {
    return {
      // login: {},
    };
  },
  getters: {},
  mutations: {},
  actions: {},
  modules: {
    login,
  },

  plugins: [
    createPersistedState({
      paths: ["login"],
    }),
  ],
});

export default store;
